/**
 *Classification
**/
function doViewCls(id)
{
	ajax.send('?m=masterdata&u=classification&a=view&suppressHeaders=1&cls_id='+id, '',
		function (r) {
			var cd = Control('idClsDialog').create('div', 'popup', 'hidden');
			cd.innerHTML = r;
			Dialog(cd).show();
		}
	);
}

function doEditCls(id, extra)
{	
	ajax.send('?m=masterdata&u=classification&a=edit&suppressHeaders=1&cls_id='+id+''+extra, '',
		function (r) {
			var cd = Control('idClsDialog').create('div', 'popup', 'hidden');
			cd.innerHTML = r;
			Dialog(cd, doCloseCls).show();
			eval($('validation_rules').innerHTML);			
		}
	);
}

function doCloseCls()
{
	Dialog('idClsDialog').hide();
}